<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>JSON</title>
	</head>
	<body>
		<h1>JSON对象创建</h1>
		<script>
			person={
				name:'Jack',
				age:20,       /*最后一个属性后不加,*/
				addr:{
					homeAddr:'太原迎泽区',
					wokeAddr:'太原小店区',
				}
			};
			alert(person.name);
			alert(person['age']);
			alert(person.addr.homeAddr);
			
			students=[
				{name:'wzj',age:43},
				{name:'ljm',age:23}
			];
			alert(students[1].age);
			
			s={
				"sites":[{
					"name":"菜鸟教程",
					"url":"https://www.runoob.com/",
				}]
			}
		</script>
	</body>
</html>
